import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire from '@feidao/web/atom/browser/msg/fire';
export default async function ca009(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  删除
	const c_boxs = fd.data.node.querySelectorAll('[data-feidao-name="list_checkbox"]:checked');
	const component_no = args[0].target.getAttribute('data-return-component');
	const event_no = args[0].target.getAttribute('data-return-event');
	if (c_boxs.length === 0) {
		fire('zj-common-002', 'ec-001', 'fail', '请选择要删除的数据');
	} else {
		fire('zj-common-001', 'ec-001', { component_no, event_no });
	}
}
